#ifndef __GOOMBA_H_
#define __GOOMBA_H_

#include "Object.h"

#define GOOMBA_VX	0.1
#define GRAVITY		0.01

 

/************************************************************************/
/* Goomba                                                                     */
/************************************************************************/

class Goomba : public Object
{
private:
	bool check_turn;

	//float _vx;
	//float _vy;
	//float _accelY;

	float _xOld;
	float _yOld;

	float timeDie;

	bool isGravity;
public:
	

	/*
	 *	get/set properties
	 */
	OBJECT_TYPE getObjectType();

	/*
	 *	constructor/destructor
	 */	
	Goomba(LPDIRECT3DDEVICE9 d3ddv,  LPDIRECT3DSURFACE9 BackBuffer, LPD3DXSPRITE SpriteHandler, float x, float y, int ID, int Object_State, int Direction);
	~Goomba();

	void TurnLeft();
	void TurnRight();

	void move(list<Object*>* obj_list, float TPF);
	void update(list<Object*>* obj_list, DxInput* input, float TPF);
	void render(int cameraX, int cameraY);

	void changeState(int state);
};

#endif